﻿@model RegisterVM
@{
    ViewBag.Title = "企业帐号注册";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>

    <link href="/Scripts/LigerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" />
    <link href="/Scripts/LigerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="/Content/Forms/formPageBase.css" rel="stylesheet" />
    <link href="/Content/Forms/validationEngine.css" rel="stylesheet" />
    <style type="text/css">
        .labelItem {
            font-size: 14px;
        }
    </style>
    
    <script src="/Scripts/jquery-1.8.2.min.js"></script>
    <script src="/Scripts/LigerUI/js/ligerui.min.js"></script>
    <script src="/Scripts/jquery.validate.min.js"></script>
    <script src="/Scripts/jquery.validate.unobtrusive.js"></script>
    <script src="/Scripts/jquery.validate.inline.js"></script>
    <script src="/Scripts/jquery.form.js"></script>
    <script type="text/javascript">
        $(function () {
            $("form").makeValidationInline();

            $(".formsItems input.texts").hover(function () {
                $(this).addClass("textsBorder");
            }, function () {
                $(this).removeClass("textsBorder");
            });

            $("#btnSave").click(function () {
                if ($("#formRegister").valid()) {
                   
                    $('#formRegister').ajaxSubmit({
                        type: "Post",
                        success: function (callback) {
                            if (callback) {
                                //$.ligerDialog.success('注册成功', function (yes) {
                                    
                                //});
                                self.location.href = "@Url.Action("RegSuccess", "Default")?lname=" + $("#LoginName").val();
                            }
                            else {
                                $.ligerDialog.error('注册失败');
                            }
                        },
                        error: function (ex) {
                            $.ligerDialog.error('注册失败');
                        }

                    });
                }
            });
        });
    </script>
    
    <link href="@Url.Content("~/Areas/CPP/Content/merge-120609.css")" rel="stylesheet" />
    <style type="text/css">
         .ali-nav2 li a {
            font-size:14px;
            font-family:"宋体";
        }
    </style>
</head>
<body>
    @{ Html.RenderAction("TopMenu", "CPartial");}
   <div>
        @{ Html.RenderAction("Header", "CPartial");}
    </div>
    <div>
        @{ Html.RenderAction("Menu", "CPartial");}
    </div>
      <div id="doc" class="sw-layout-doc">
      <div id="content">
          <div class="layout" id="content-inner">
              <div style=" background-repeat:no-repeat;width:990px; height:114px;background-image: url(/areas/cpp/Images/625901_1040384159.png);">
                  
              </div>
              <div class="layout main">
                  @using (Html.BeginForm("Register", "Default", FormMethod.Post, new { id = "formRegister" }))
                  {
                
                      <div id="detail_forms" style="width: 400px; margin: 0 auto;">
                          <div class="formsItems clearfix">
                              <div class="formItem">
                                  <h2 style="font-size: 16px;">企业账号注册</h2>
                              </div>
                          </div>
                          <div class="formsItems clearfix">
                              <div class="formItem labelItem">
                                  登录账号
                              </div>
                              <div class="formItem textItem">
                                  @Html.TextBoxFor(model => model.LoginName, new { @class = "texts" })
                              </div>
                              <div class="formItem msgItem">
                                  *
                              </div>
                          </div>

                          <div class="formsItems clearfix">
                              <div class="formItem labelItem">
                                  密码
                              </div>
                              <div class="formItem textItem">
                                  @Html.PasswordFor(model => model.LoginPassword, new { @class = "texts" })
                              </div>
                              <div class="formItem msgItem">
                                  *
                              </div>
                          </div>

                          <div class="formsItems clearfix">
                              <div class="formItem labelItem">
                                  确认密码
                              </div>
                              <div class="formItem textItem">
                                  @Html.PasswordFor(model => model.ConfirmLoginPassword, new { @class = "texts" })
                              </div>
                              <div class="formItem msgItem">
                                  *
                              </div>
                          </div>
                          <div class="formsItems clearfix">
                              <div class="formItem labelItem">
                                  公司名
                              </div>
                              <div class="formItem textItem">
                                  @Html.TextBoxFor(model => model.CompanyName, new { @class = "texts" })
                              </div>
                              <div class="formItem msgItem">
                                  *
                              </div>
                          </div>
                          <div class="formsItems clearfix">
                              <div class="formItem labelItem">
                                  E-mail
                              </div>
                              <div class="formItem textItem">
                                  @Html.TextBoxFor(model => model.Email, new { @class = "texts" })
                              </div>
                              <div class="formItem msgItem">
                                  *
                              </div>
                          </div>
                          <div id="btnContainer" class="formsItems">
                              <div class="formItem labelItem">
                                  &nbsp;
                              </div>
                              <div class="formItem textItem">
                                  <a href="javascript:void(0);" id="btnSave" style="color: #FFF;">注册</a>
                                  <a href="@Url.Action("Index")" id="btnCancel">取消</a>
                              </div>
                              <div class="formItem">
                              </div>
                          </div>
                          <div class="formsItems"></div>
                      </div>
                  }
              </div>
          </div>
      </div>
          </div>
   <div>

        @{ Html.RenderAction("Footer", "CPartial");}

    </div>
</body>
</html>
